import request from "@/utils/request";

// 分页查询设备管理列表
export function findShopDevice(query) {
  return request({
    url: "/shopDevice/findShopDevice",
    method: "get",
    params: query,
  });
}
// 查询监测区域信息
export function getShopMonitorVos(organId) {
  return request({
    url: "/shopDevice/getShopMonitorVos/" + organId,
    method: "get",
  });
}

// 新增设备
export function insertShopDevice(data) {
  return request({
    url: "/shopDevice/insertShopDevice",
    method: "post",
    data: data,
  });
}

// 修改设备（设置启用/禁用）
export function updateShopDevice(data) {
  return request({
    url: "/shopDevice/updateShopDevice",
    method: "post",
    data: data,
  });
}

// 删除设备
export function deleteShopDevice(data) {
  return request({
    url: "/shopDevice/deleteShopDevice",
    method: "post",
    data: data,
  });
}
